<template>
	<view>

	</view>
</template>
<script>
	export default {
		onShow() {
			const token = uni.getStorageSync('token');
			if (token) {
				uni.switchTab({
					url: '/pages/home/index'
				});

			} else {
				uni.reLaunch({
					url: '/pages/index/login'
				});
			}
		}
	}
</script>
